package com.app.mymusic.test.dagger2;

import rx.Observable;

/**
 * Created by Administrator on 2016-12-1.
 */

public interface UserContact {

    //Model层定义接口,外部只需关心model返回的数据,无需关心内部细节,及是否使用缓存
    interface Model<T> {
        Observable<User> getUsers(int lastIdQueried, boolean update, DaggerPresenter.GetCallback callback);
        void attachView(T view);
        void destroyView();
    }
    interface Iview{
        void showSucess();
        void showError();
    }
}
